package ui.face {

	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class FaceIconItem extends Sprite {
		
		public var handler:Function;

		public function FaceIconItem(faceIcon:Bitmap) {
			super();
			
			addChild(faceIcon);
			addEventListener(MouseEvent.CLICK, clickHandler);
			buttonMode = true;
		}
		
		private function clickHandler(event:MouseEvent):void {
			if (handler != null) {
				handler();
			}
		}
	}
}